#ifndef _LIB_AV_STREAM_H_
#define _LIB_AV_STREAM_H_

#include <stdint.h>
#include <stdio.h>

typedef enum
{
	P_FREAME,
	I_FRAME	
}VIDEO_RFAME_TYPE;

typedef enum
{
	PCM,
	AAC_LC
}AUDIO_RFAME_TYPE;

typedef struct {
int spslen;
char *sps;
int ppslen;
char *pps;
} sps_pps_info;

typedef struct {
	VIDEO_RFAME_TYPE 	frame_type;
	int					timestamp;
	int   				width;
	int   				height;
	char    			*pframe_data;
	int 				frame_len;
} video_frame_info;

typedef struct {
	AUDIO_RFAME_TYPE 	frame_type;
	int					timestamp;
	int   				width;
	int   				height;
	char    			*pframe_data;
	int 				frame_len;
} audio_frame_info;

typedef struct {
	unsigned int   		width;//视频宽
	unsigned int   		height;//视频高
	unsigned int 		fps;//帧率
} h264_param;


int h264_stream_init();
int h264_stream_get(video_frame_info *pv_info);
int h264_stream_deinit();
int h264_stream_param_get(h264_param *pv_param);

#endif//_LIB_AV_STREAM_H_